
/* 招新申请页面容器 - 浅色主题 */
.application-form-container {
  min-height: 100vh;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding: 0;
  margin: 0;
}

/* 页面头部 - 浅色卡片风格 */
.form-header {
  background-color: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.form-header h2 {
  color: #1e293b;
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: #64748b;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* 主要内容区域 - 居中布局 */
.application-form-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 腾讯问卷容器 - 浅色卡片 */
.tencent-form-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.tencent-form-container iframe {
  display: block;
  width: 100%;
  height: 800px;
  border: none;
}

/* 申请指南 - 浅色卡片 */
.application-guide {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border: 1px solid #e2e8f0;
}

.application-guide h3 {
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-content h4 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px 0;
}

.guide-content p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 15px;
}

.guide-content ol,
.guide-content ul {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 15px;
  padding-left: 20px;
}

.guide-content li {
  margin-bottom: 8px;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-container p {
  color: #64748b;
  margin-top: 15px;
  font-size: 16px;
}

/* 手机端响应式样式 - 统一480px宽度标准 */
@media (max-width: 768px) {
  .application-form-container {
    background-color: #f8fafc;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .form-header {
    padding: 25px 15px;
    margin-bottom: 20px;
  }
  
  .form-header h2 {
    font-size: 24px;
  }
  
  .form-header p {
    font-size: 15px;
  }
  
  .application-form-content {
    padding: 0 15px;
  }
  
  .tencent-form-container {
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .tencent-form-container iframe {
    height: 700px;
  }
  
  .application-guide {
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .application-guide h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .guide-content h4 {
    font-size: 17px;
  }
  
  .guide-content p,
  .guide-content li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .application-form-container {
    background-color: #f8fafc;
  }
  
  .form-header {
    padding: 20px 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  
  .form-header h2 {
    font-size: 22px;
  }
  
  .form-header p {
    font-size: 14px;
  }
  
  .application-form-content {
    padding: 0 10px;
  }
  
  .tencent-form-container {
    border-radius: 0;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: none;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .tencent-form-container iframe {
    height: 600px;
  }
  
  .application-guide {
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: none;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .application-guide h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .guide-content h4 {
    font-size: 16px;
    margin: 15px 0 8px 0;
  }
  
  .guide-content p,
  .guide-content li {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .loading-container {
    padding: 40px 20px;
  }
  
  .loading-container p {
    font-size: 14px;
  }
}

/* 申请表单标题样式 - 设置字体大小、边距、颜色和居中对齐 */
.application-form-main h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1e293b;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 申请表单描述文本样式 - 设置颜色、居中对齐和下边距 */
.application-form-main p {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* 表单部分样式 - 设置下边距 */
.form-section {
  margin-bottom: 30px;
}

/* 表单部分标题样式 - 设置字体大小、边距、颜色、下划线和内边距 */
.form-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
}

/* 表单行样式 - 设置flex布局、换行和间距 */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* 表单组样式 - 设置弹性布局、最小宽度和下边距 */
.form-group {
  flex: 1;
  min-width: 250px;
  margin-bottom: 15px;
}

/* 表单标签样式 - 设置显示方式、边距、字重和颜色 */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

/* 选填提示样式 */
.form-group label .optional {
  font-weight: normal;
  color: #666;
  font-size: 14px;
}

/* 表单输入框样式 - 设置宽度、内边距、边框、圆角、字体大小和过渡效果 */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fafafa;
  box-sizing: border-box;
}

/* 表单输入框聚焦样式 - 更改边框颜色和添加阴影 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 错误信息样式 - 设置颜色、字体大小、边距和显示方式 */
.error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

/* 文件上传容器样式 - 设置相对定位和下边距 */
.file-upload-container {
  position: relative;
  margin-bottom: 15px;
}

/* 文件输入框样式 - 设置绝对定位、宽度、高度、透明度和游标 */
.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* 文件上传标签样式 - 设置相对定位、显示方式、对齐方式、内边距、边框、圆角、背景色和游标 */
.file-upload-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 100px;
}

/* 文件上传标签悬停样式 - 更改边框颜色和背景色 */
.file-upload-label:hover {
  border-color: #007bff;
  background-color: #e9ecef;
}

/* 上传图标样式 - 设置字体大小和下边距 */
.upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

/* 上传文本样式 - 设置颜色、文本对齐和字体大小 */
.upload-text {
  color: #666;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

/* 文件格式提示样式 - 设置颜色、字体大小、文本对齐和上边距 */
.file-format-hint {
  color: #666;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

/* 表单操作区域样式 - 设置flex布局、居中对齐和上边距 */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* 提交按钮样式 */
.submit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-button:disabled {
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.submit-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 下载部分样式 */
.download-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.download-hint {
  margin-bottom: 20px;
  color: #4b5563;
  font-size: 16px;
}

/* 下载操作按钮组样式 */
.download-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* 复制按钮样式 */
.copy-button {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-button:hover {
  background: linear-gradient(135deg, #138496 0%, #5a2d91 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 邮件提示样式 */
.email-hint {
  margin-top: 15px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.download-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 状态消息样式 - 设置基础样式 */
.status-message {
  padding: 15px 20px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* 成功状态消息样式 - 增强视觉效果 */
.status-message.success {
  background-color: #10b981;
  color: white;
  padding: 25px 30px;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
  position: relative;
  overflow: hidden;
  animation: successPulse 2s ease-in-out;
}

/* 成功消息图标 */
.status-message.success::before {
  content: '🎉';
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

/* 成功消息脉冲动画 */
@keyframes successPulse {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 错误状态消息样式 - 设置背景色和颜色 */
.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* 字符计数样式 - 设置文本对齐、颜色、字体大小和上边距 */
.char-count {
  text-align: right;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
}

/* 模态框覆盖层样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

/* 模态框淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 模态框内容样式 */
.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

/* 模态框滑入动画 */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 模态框头部样式 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
}

/* 模态框关闭按钮样式 */
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

/* 模态框主体样式 */
.modal-body {
  padding: 20px;
}

.modal-body p {
  margin-bottom: 15px;
  color: #475569;
  font-size: 14px;
}

/* 密码输入框样式 */
.password-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.password-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-hint {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-top: 5px !important;
}

/* 模态框底部样式 */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #e2e8f0;
}

/* 取消按钮样式 */
.cancel-button {
  padding: 10px 20px;
  background-color: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-button:hover {
  background-color: #e2e8f0;
}

/* 确认按钮样式 */
.confirm-button {
  padding: 10px 20px;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-button:hover:not(:disabled) {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.confirm-button:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 响应式设计 - 当屏幕宽度小于768px时应用的样式 - 统一移动端宽度 */
@media (max-width: 768px) {
  /* 统一移动端容器设置 */
  .application-form-container {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .application-form-content {
    flex-direction: column;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* 侧边栏重置定位 */
  .application-form-sidebar {
    flex: 1;
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }
  
  /* 主表单区域重置 */
  .application-form-main {
    flex: 1;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 表单组最小宽度 */
  .form-group {
    min-width: 100%;
    box-sizing: border-box;
  }
  
  /* 表单行间距 */
  .form-row {
    gap: 0;
    flex-direction: column;
  }
  
  /* 模态框响应式调整 */
  .modal-content {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    box-sizing: border-box;
  }
}